package project.controllers.sort;

import java.util.Comparator;

import project.model.IOrder;

public class SortOrderByPrice implements Comparator<IOrder> {
	
	public int compare(IOrder order1,IOrder order2){
		int result=0;
			result=order1.getPrice().compareTo(order2.getPrice());
		return result;		
	}
	
	

}
